package com.example.gkw.dagger2test.demo3;

import com.example.gkw.dagger2test.demo3.anno.QualifierA;
import com.example.gkw.dagger2test.demo3.anno.QualifierB;

import javax.inject.Inject;

/**
 * Describe:
 * Author:hcs
 * Email:aaron1539@163.com
 * Date:2018/12/24 14:32
 **/
public class MCar {
    @QualifierA
    @Inject
    MEngine engineA;

    @QualifierB
    @Inject
    MEngine engineB;

    public MCar() {
        DaggerMCarComponent.builder().mMarkCarModule(new MMarkCarModule()).build().inject(this);
    }

    public MEngine getEngineA() {
        return engineA;
    }

    public MEngine getEngineB() {
        return engineB;
    }
}
